package messages;


/**
 * AccountCreationSuccessful message
 * 
 * This message is sent by the server in reply to a successful
 * account creation request.
 */
public class AccountCreationSuccessfulMessage extends Message {
	private static final long serialVersionUID = 1L;
	
	public AccountCreationSuccessfulMessage(String senderLogin, String login) {
		super();
		
		this.senderLogin = senderLogin;
		this.login = login;
	}
	
	public String getLogin() {
		return this.login;
	}
	
	
	public String getSenderLogin() {
		return senderLogin;
	}
	

	@Override
	public String toString() {
		return super.toString() + "(" + this.login + ")";
	}
	
	private String login;	 // Created login
	private String senderLogin;
}
